package com.yl.auth.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yl.auth.mapper.ChenlianMapper;
import com.yl.auth.model.entity.Chenlian;
import com.yl.auth.model.vo.ChenlianVo;
import com.yl.auth.service.ChenlianService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ln
 * @since 2023-06-20
 */
@Service
public class ChenlianServiceImpl extends ServiceImpl<ChenlianMapper, Chenlian> implements ChenlianService {
    @Resource
    private ChenlianMapper chenlianMapper;


    @Override
    public Page<ChenlianVo> getchenlian(Page<ChenlianVo> iPage, String lrname, String sbtime) {
        return chenlianMapper.getchenlian(iPage,lrname,sbtime);
    }

    @Override
    public ChenlianVo getchenlianById(Integer id) {
        return chenlianMapper.getchenlianById(id);
    }

    @Override
    public List<ChenlianVo> getxiaochenlian() {
        return chenlianMapper.getxiaochenlian();
    }
}
